from messAround.util.database import BaseModel, BaseModelField
from sqlalchemy import Column
from sqlalchemy import VARCHAR, Integer


# 百度贴吧
class BaiduTiebaModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_baidu_tieba'
    topic_id = Column(Integer, default=0)
    title = Column(VARCHAR(1000))
    full_title = Column(VARCHAR(1000))
    link = Column(VARCHAR(1000))
    info = Column(VARCHAR(1000))
    cover = Column(VARCHAR(1000))
    discuss_num = Column(Integer, default=0)


# 百度热搜
class BaiduTopModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_baidu_topic'
    title = Column(VARCHAR(1000))
    category = Column(VARCHAR(1000))
    link = Column(VARCHAR(1000))
    info = Column(VARCHAR(1000))
    hot_index = Column(VARCHAR(1000))
